home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Shareware / Auslogics BoostSpeed 4.2.7.172 / boost-speed-setup.exe / {app} / SystemInformation.exe / 0 / TEMPLATES / REPORT_TEMPLATE
Extensible Markup Language  |  2008-10-30  |  8KB  |  169 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3.  
  4.   <xsl:output method="html" doctype-public="-//W3C//DTD HTML 4.01//EN" encoding="utf-8" />
  5.  
  6.   <xsl:decimal-format name="decimal-format" decimal-separator="." grouping-separator="," />
  7.   
  8.   <xsl:template match="/">
  9.     <html>
  10.       <head>
  11.         <title><xsl:value-of select="/report/header/program"/> Report</title>
  12.         <style type="text/css">
  13.           .note { BACKGROUND-COLOR:  #ffffff; COLOR: #336699; FONT-FAMILY: "Verdana", sans-serif; FONT-SIZE: 100%; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 0px;MARGIN-TOP: 0px; PADDING-RIGHT: 10px}
  14.           .infotable { BACKGROUND-COLOR: #f0f0e0; BORDER-BOTTOM: #ffffff 0px solid; BORDER-COLLAPSE: collapse; BORDER-LEFT: #ffffff 0px solid; BORDER-RIGHT: #ffffff 0px  solid; BORDER-TOP: #ffffff 0px solid; BORDER-COLOR:white; FONT-SIZE: 70%; MARGIN-LEFT: 10px }
  15.           .header { BACKGROUND-COLOR: #cecf9c; BORDER-BOTTOM: #ffffff 1px solid; BORDER-LEFT: #ffffff 1px solid; BORDER-RIGHT: #ffffff 1px solid;  BORDER-TOP: #ffffff 1px solid; COLOR: #000000; FONT-WEIGHT: bold }
  16.           .content { BACKGROUND-COLOR: #e7e7ce; BORDER-BOTTOM: #ffffff 1px solid; BORDER-LEFT: #ffffff 1px solid; BORDER-RIGHT: #ffffff 1px solid;     BORDER-TOP: #ffffff 1px solid;  PADDING-LEFT: 3px }
  17.           .foot-r { BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #ffffff 1px solid; BORDER-TOP: #ffffff 1px solid; text-align:right; padding-right:10px;}
  18.           .foot-l { BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #ffffff 1px solid; BORDER-TOP: #ffffff 1px solid; text-align:left; padding-left:10px;}
  19.           .beforeline { BACKGROUND-COLOR: red;  COLOR: red; }
  20.           .afterline { BACKGROUND-COLOR: green;  COLOR: green; }
  21.           H1 { BACKGROUND-COLOR: #003366; BORDER-BOTTOM: #336699 6px solid; COLOR: #ffffff; FONT-SIZE: 130%; FONT-WEIGHT: normal; MARGIN: 0em 0em 0em -20px; PADDING-BOTTOM: 8px;  PADDING-LEFT: 30px; PADDING-TOP: 16px }
  22.           H2 { COLOR: #000000; FONT-SIZE: 80%; FONT-WEIGHT: bold; MARGIN-BOTTOM: 3px; MARGIN-LEFT: 10px; MARGIN-TOP: 20px; PADDING-RIGHT: 20px }
  23.           P { FONT-FAMILY: "Verdana", sans-serif; FONT-SIZE: 70%; LINE-HEIGHT: 12pt; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 10px; MARGIN-TOP: 10px}
  24.           BODY { BACKGROUND-COLOR: white; FONT-FAMILY: "Verdana", sans-serif; FONT-SIZE: 100%; MARGIN-LEFT: 0px;     MARGIN-TOP: 0px }
  25.           A:link { COLOR: #336699; TEXT-DECORATION: underline }
  26.           A:visited { COLOR: #336699; }
  27.           A:active { COLOR: #336699; }
  28.           A:hover { COLOR: #003366; TEXT-DECORATION: underline }
  29.         </style>
  30.       </head>
  31.       <body>
  32.         <h1><xsl:value-of select="/report/header/program"/></h1>
  33.         <table align="center" width="100%" border="0">
  34.           <tr>
  35.             <td>
  36.               <p>
  37.                 <span class="note">
  38.                   <b>%REP_GENERATED% </b> <xsl:value-of select="/report/header/generated"/>
  39.                 </span>
  40.               </p>
  41.               <p>
  42.                 <h2>
  43.                   %REP_USER% "<xsl:value-of select="/report/header/user"/>"
  44.                 </h2>
  45.               </p>
  46.             </td>
  47.           </tr>
  48.           <tr>
  49.             <td>
  50.               <table align="center" cellpadding="2" cellspacing="0" width="100%" border="1" bordercolor="white" class="infotable">
  51.               
  52.                 <!--Summary-->
  53.                 <tr>
  54.                   <td colspan="2" class="header">
  55.                     %REP_SYSINFO_HEADER%
  56.                   </td>
  57.                 </tr>
  58.                 <tr>
  59.                   <td class="content" width="45%">
  60.                     <br/>
  61.                   </td>
  62.                   <td class="content">
  63.                     <br/>
  64.                   </td>
  65.                 </tr>
  66.                 <tr>
  67.                   <td class="foot-r">%REP_SYSINFO_WINVER%</td>
  68.                   <td class="foot-l">
  69.                     <xsl:value-of select="/report/header/winversion"/>
  70.                   </td>
  71.                 </tr>
  72.                 <tr>
  73.                   <td class="foot-r">%REP_SYSINFO_WINKEY%</td>
  74.                   <td class="foot-l">
  75.                     <xsl:value-of select="/report/header/winkey"/>
  76.                   </td>
  77.                 </tr>
  78.                 <tr>
  79.                   <td class="foot-r">%REP_SYSINFO_WINID%</td>
  80.                   <td class="foot-l">
  81.                     <xsl:value-of select="/report/header/winid"/>
  82.                   </td>
  83.                 </tr>
  84.                 <tr>
  85.                   <td class="foot-r">%REP_SYSINFO_SYSNAME%</td>
  86.                   <td class="foot-l">
  87.                     <xsl:value-of select="/report/header/systemname"/>
  88.                   </td>
  89.                 </tr>
  90.                 <tr>
  91.                   <td class="foot-r">%REP_SYSINFO_PROCNAME%</td>
  92.                   <td class="foot-l">
  93.                     <xsl:value-of select="/report/header/processorname"/>
  94.                   </td>
  95.                 </tr>
  96.                 <tr>
  97.                   <td class="foot-r">%REP_SYSINFO_MEMORY%</td>
  98.                   <td class="foot-l">
  99.                     <xsl:value-of select="/report/header/installedmemory"/>
  100.                   </td>
  101.                 </tr>
  102.                 <tr height="10px">
  103.                   <td colspan="2" class="foot-r">
  104.                     <br/>
  105.                   </td>
  106.                 </tr>
  107.               </table>
  108.             </td>
  109.           </tr>
  110.  
  111.           <!--Categories-->
  112.           <xsl:for-each select="/report/sections/section">
  113.               <tr>
  114.                 <td>
  115.                   <table align="center" cellpadding="2" cellspacing="0" width="100%" border="1" bordercolor="white" class="infotable">
  116.                     <tr class="header">
  117.                       <td colspan="3">
  118.                         <xsl:value-of select="title"/>
  119.                       </td>
  120.                     </tr>
  121.                     <tr class="content">
  122.                       <td width="45%">%REP_NAME%</td>
  123.                       <td width="42%">%REP_VALUE%</td>
  124.                       <td>%REP_ADD%</td>
  125.                     </tr>
  126.                     <xsl:for-each select="items/item">
  127.                       <tr class="foot-l">
  128.                         <td>
  129.                           <xsl:value-of select="name"/>
  130.                         </td>
  131.                         <td>
  132.                           <xsl:value-of select="param"/>
  133.                         </td>
  134.                         <td>
  135.                           <xsl:value-of select="advanced"/>
  136.                         </td>
  137.                       </tr>
  138.                     </xsl:for-each>
  139.                   </table>
  140.                 </td>
  141.               </tr>
  142.               <tr height="10px"/>
  143.           </xsl:for-each>
  144.  
  145.           <tr>
  146.             <td>
  147.               <hr align="center" width="100%"/>
  148.               <p>
  149.                 <span class="note">
  150.                     <b>Auslogics Pty Ltd -
  151.                       <a>
  152.                         <xsl:attribute name="href">
  153.                           <xsl:value-of select="/report/header/site"/>
  154.                         </xsl:attribute>
  155.                         %REP_VISITSITE%
  156.                       </a>
  157.                     </b>
  158.                 </span>
  159.               </p>
  160.             </td>
  161.           </tr>
  162.           
  163.         </table>
  164.       </body>
  165.     </html>
  166.   </xsl:template>
  167.  
  168. </xsl:stylesheet>
  169.